<%@page import="com.wframe.framework.util.UploadUtil"%>
<%@ page language="java" pageEncoding="utf-8"%>
<%@taglib uri="/WEB-INF/page-base.tld" prefix="w"%>
<%String path=request.getContextPath();request.setAttribute("fileserver", UploadUtil.getConfig().getDownserver()); %>

<div class="easyui-panel" data-options="doSize:false,layoutH:47,border:false" style="margin:5px">
	<form method="post" action="/order/OrderPage@update.page" class="pageForm">
		<w:hidden bind="bean.id"/>
		<div class="order-h"><strong>订单信息</strong></div>
		<div class="order-c">
			<p><span>订单编号：<w:write bind="bean.code"/>（<w:write bind="bean.status" enumClass="com.wframe.project.former.enums.OrderStatusEnum" enumKey="status" enumValue="name"/>）</span><span>下单时间：<w:write bind="bean.ordertime" format="yyyy-MM-dd HH:mm:ss"/></span></p>
			<p><span>买家账号：<w:write bind="bean.loginname"/></span><span>付款时间：</span></p>
			<p><span>联系方式：<w:write bind="bean.userphone"/></span><span>发货时间：<w:write bind="bean.sendtime" format="yyyy-MM-dd HH:mm:ss"/></span></p>
			<p><span>支付方式：<w:write bind="bean.paytype" format="[,在线支付,货到付款]"/></span><span></span></p>
			<p><span>实际支付：￥<w:write bind="bean.pay_money"/></span><span></span></p>
		</div>
		<div class="line10 bodybg"></div>
		<div class="order-h"><strong>收货信息</strong></div>
		<div class="order-c">
			<p><span>收货人：<w:write bind="bean.receipt_user"/></span></p>
			<p><span>联系方式：<w:write bind="bean.receipt_phone"/></span></p>
			<p><span style="width:auto">收货地址：<w:write bind="bean.receipt_shen"/> <w:write bind="bean.receipt_shi"/> <w:write bind="bean.receipt_qu"/> <w:write bind="bean.receipt_address"/></span></p>
		</div>
		<div class="line10 bodybg"></div>
		<div class="order-h"><strong>商品信息</strong></div>
		<div class="order-c">
			<table class="ui-table" width="100%" cellpadding="1" cellspacing="1" data-options="showPage:false">
				<thead>
					<tr class="ui_th">
						<td>商品图片</td>
						<td>商品编号</td>
						<td>商品名称</td>
						<td>类目</td>
						<td>规格</td>
						<td>市场价</td>
						<td>商品单价</td>
						<td>数量</td>
						<td>小计</td>
					</tr>
				</thead>
				<w:iterate id="product" bind="bean.products">
				<tr class="ui_td">
					<td><img src="${fileserver }<w:write bind="#product.photo"/>" class="productimg"></td>
					<td><w:write bind="#product.productcode"/></td>
					<td><w:write bind="#product.productname"/> <w:write bind="#product.name"/></td>
					<td><w:write bind="#product.classname"/></td>
					<td><w:write bind="#product.b_guige"/></td>
					<td><w:write bind="#product.price_s"/></td>
					<td><w:write bind="#product.buyprice"/></td>
					<td><w:write bind="#product.buyamount"/></td>
					<td><w:write bind="#product.sumprice"/></td>
				</tr>
				</w:iterate>
			</table>
		</div>
		<div class="line10 bodybg"></div>
		<div class="order-h"><strong>费用信息</strong></div>
		<div class="order-c">
			<p><span>商品总额：￥<w:write bind="bean.order_money"/></span></p>
			<p><span>促销优惠：￥<w:write bind="bean.reduce_money"/></span></p>
			<p><span>商品折扣优惠：￥<w:write bind="bean.yh_money"/></span></p>
			<p><span>运费总额：￥<w:write bind="bean.fare_money"/></span></p>
			<p><span class="red"><strong>应付总额：￥<w:write bind="bean.pay_money"/></strong></span></p>
		</div>
		<w:define id="status"  bind="bean.status" type="java.lang.Integer"/>
		<%if(status>=7){ %>
			<div class="line10 bodybg"></div>
			<div class="order-h"><strong>配送信息</strong></div>
			<div class="order-c">
				<p><span>配送方式：<w:write bind="bean.deliverstype" format="[,物流配送,上门自取]"/></span></p>
				<p><span>物流公司：<w:write bind="bean.expres_type" dict="ExpressCompany"/></span></p>
				<p><span>物流单号：<w:write bind="bean.expres_code"/></span></p>
			</div>
		<%} %>
	</form>
	<div class="line10"></div>
</div>
<div class="ui-buttonBar">
	<w:equal bind="bean.status" value="3">
		<a href="javascript:;" class="easyui-linkbutton marginR16" iconCls="icon_save" onclick="fahuo_win(<w:write bind="bean.id"/>);">发货</a>
	</w:equal>
	<a href="javascript:;" class="easyui-linkbutton" iconCls="icon_cancel" onclick="$w.closeCurrWin()">关闭</a>
</div>
